package day9;

import java.sql.SQLOutput;

public class D9_3 {
    public static void main(String[] args) {
        Normal normal=new Normal();
        normal.run();
        V8aodi v8aodi=new V8aodi();
        v8aodi.run();
        v8aodi.zhidongjiashi();
        v8aodi.zidongboche();
    }
}
class Car{
    public void run(){}
}
interface AIDrive{
    void zhidongjiashi();
}
interface AIflioting{
    void zidongboche();
}
class Normal extends Car{
    @Override
    public void run() {
        System.out.println("普通奥迪正在行驶....");
    }
}
class V8aodi extends Car implements AIDrive,AIflioting{
    @Override
    public void zhidongjiashi() {
        System.out.println("高级奥迪会自动驾驶....");
    }
    @Override
    public void zidongboche() {
        System.out.println("高级奥迪会自动泊车....");
    }
    @Override
    public void run() {
        System.out.println("高级奥迪正在行驶....");
    }
}
